home *** CD-ROM | disk | FTP | other *** search
- function onEnterFrame()
- {
- if(activeStore == true)
- {
- this._y -= (this._y - endYPos) / 4;
- this._x -= (this._x - endXPos) / 4;
- }
- else
- {
- this._y -= (this._y - startYPos) / 4;
- this._x -= (this._x - startXPos) / 4;
- }
- if(target1Store != _parent[target1].switchStatus or target2Store != _parent[target2].switchStatus)
- {
- target1Store = _parent[target1].switchStatus;
- target2Store = _parent[target2].switchStatus;
- if(activeStore == true)
- {
- activeStore = false;
- }
- else
- {
- activeStore = true;
- }
- }
- }
- function onRelease()
- {
- if(activeStore == true)
- {
- activeStore = false;
- }
- else
- {
- activeStore = true;
- }
- }
- rotStore = _rotation;
- startYPos = this._y;
- startXPos = this._x;
- endXPos = this._x - endXPos;
- endYPos = this._y - endYPos;
- activeStore = false;
- target1Store = _parent[target1].switchStatus;
- target2Store = _parent[target2].switchStatus;
-